cmake_minimum_required(VERSION 3.13)

set(LIB_NAME "tiencoderlib")
project(${LIB_NAME})

aux_source_directory(${PROJECT_SOURCE_DIR} ${LIB_NAME}Src)

add_library(${LIB_NAME} STATIC ${${LIB_NAME}Src})

target_include_directories(${LIB_NAME} PUBLIC
        ${PROJECT_SOURCE_DIR}
    )

target_link_libraries(${LIB_NAME}
    commonlib
    )

install(TARGETS ${LIB_NAME} DESTINATION ${KAPOK_INSTALL_LIB_DIR})
